<?php /* Smarty version 2.6.31, created on 2018-02-28 22:11:31
         compiled from E:/xampp/htdocs/lauwen_php/Admin/Tpl/Article/index.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'date_format', 'E:/xampp/htdocs/lauwen_php/Admin/Tpl/Article/index.html', 15, false),)), $this); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => '../Common/head_category.html', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<body>
<div class="container-fluid">
    <table class="table table-hover">
        <thead>
        <tr>
            <th>文章标题</th>
            <th>时间</th>
            <th>管理操作</th>
        </tr>
        </thead>
        <?php $_from = ($this->_tpl_vars['data']); if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['v']):
?>
        <tr>
            <td class="col-sm-5 col-md-7 col-lg-7"><?php echo $this->_tpl_vars['v']['title']; ?>
</td>
            <td class="col-sm-4 col-md-3 col-lg-3"><?php echo ((is_array($_tmp=$this->_tpl_vars['v']['sendtime'])) ? $this->_run_mod_handler('date_format', true, $_tmp, '%m-%d %H:%M') : smarty_modifier_date_format($_tmp, '%m-%d %H:%M')); ?>
</td>
            <td class="col-sm-3 col-md-2 col-lg-2">
                <a href="<?php echo @__APP__; ?>
?c=Article&m=edit&aid=<?php echo $this->_tpl_vars['v']['aid']; ?>
" class="btn btn-success btn-xs">修改</a>
                <button type="button" onclick="category_del('<?php echo $this->_tpl_vars['v']['aid']; ?>
')" class="btn btn-danger btn-xs">删除</button>
            </td>
        </tr>
        <?php endforeach; endif; unset($_from); ?>
    </table>
</div>
<?php echo '
<script type="text/javascript">
    function category_del(aid){
        if(confirm("确定删除该文章吗？")){
            location.href = "./admin.php?c=Article&m=del&aid="+aid;
        }
    }
</script>
'; ?>

</body>
</html>